﻿@using DevExpress.Web.ASPxEditors
@using Dogshow.Model
@using DevExpress.Web.Mvc.UI
@using Dogshow.Web.Controllers
@model int?

@Html.DevExpress().ComboBox(s =>
{
    s.Name = "IdRase";
    s.ShowModelErrors = true;
    s.Properties.DropDownRows = 30;
    s.Properties.ValueType = typeof(int);
    s.Properties.ValueField = "Id";
    s.Properties.TextField = "NazivRase";
    s.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
    s.Properties.EnableCallbackMode = true;
    s.CallbackRouteValues = new { Controller = "Psi", Action = "RasePasaComboBoxCallback" };
    s.ControlStyle.CssClass = "editor";
}).BindList(PsiController.FiltrirajRase, PsiController.FiltrirajRasuPoId).BindList(PsiController.VratiRasuPoId(Model)).Bind(Model).GetHtml()